package com.zxx.dao;

import com.zxx.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {

    @Select("select * from user")
    public List<User> findAll();

    @Insert("insert into user(birthday,name,password) values (#{birthday},#{name},#{password})")
    public void insert( User user);
}
